<!doctype html>
<html lang="zh-CN" th:replace="admin-layout :: layout(~{::title}, ~{}, ~{::script}, ~{::body}, 'classify-list')"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <title>分类列表</title>
    <script type="text/javascript" th:src="@{/custom/js/classify/admin-classify-table.js}"></script>
    <script>
        $(".return-btn").click(function(){
            $("#toolbar").submit();
        })
    </script>
</head>
<body>
<div class="hidden">
    <form id="toolbar" method="post" th:action="@{/admin/classify/tree/list}">
        <input type="hidden" name="page" id="page">
        <div class="row">
            <div class="col-sm-4 col-md-4 col-lg-2 fyl-mb10">
                <input type="text" class="form-control fyl-clear" name="name"
                       placeholder="分类名称" th:value="${query.name}">
            </div>
            <div class="col-sm-4 col-md-4 col-lg-2 fyl-mb10">
                <a href="javascript:void(0)" class="btn btn-primary" id="searchBtn">查询</a>
                <button type="button" class="btn btn-warning" id="clearSearchBtn" >清空</button>
            </div>
        </div>
    </form>
</div>
<div class="fyl-mb20">
    <button type="button" class="btn btn-primary return-btn">返回</button>
</div>
<table id="table" data-url="/admin/classify/ajax/list"></table>
</body>
</html>